package com.fourth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fourth.vo.GnameAndSendVo;
import com.fourth.vo.OrderVo;
import com.ljx.entity.Order;
import com.ljx.vo.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2023/3/7 15:59
 * @Version 1.0
 */
public interface UBorderDao extends BaseMapper<Order> {

	/**
	 * 查询订单管理所有数据
	 */
	Page<OrderVo>   selectOrderAllByBid(Page<OrderVo> page,@Param("bid") String bid,@Param("gnameAndSendVo") GnameAndSendVo gnameAndSendVo);

	/**
	 * 根据订单号查询商品信息
	 * @param code
	 * @return
	 */
	List<OrderVo>   selectOrderByCode(@Param("code") String code,@Param("bid") String bid);


	int updateSend(@Param("bid") String bid,@Param("code") String code);
}
